package cn.explink.dop.service;

import java.util.List;
import java.util.Map;

import org.springframework.transaction.annotation.Transactional;

import cn.explink.dop.entity.vo.ConditionVO;
import cn.explink.dop.entity.vo.DistributeStrategyVO;
import cn.explink.eap.core.common.service.CommonService;

@Transactional
public interface DistributeStrategyService extends CommonService {

	public List<DistributeStrategyVO> getDistributeStrategyList(DistributeStrategyVO distributeStrategyVO);

	public Map<String, Object> getListDataByPage(final DistributeStrategyVO distributeStrategyVO, final int pageNum, final int pageSize);

	public List<ConditionVO> getPresetCondition();

	public ConditionVO getConditionById(String conditionId);

	/**
	 * @param i
	 *
	 * @Title: stopdistributeStrategy
	 * @Description: 将其他的分单策略改为停用
	 * @author 孟凡岭
	 * @param @param id
	 * @return void 返回类型
	 * @throws
	 */
	public void stopdistributeStrategy(String id);

	/**
	 *
	 * @Title: stop
	 * @Description: 停用策略
	 * @author 孟凡岭
	 * @param @param idsList
	 * @return void 返回类型
	 * @throws
	 */
	public void stop(List<String> idsList);

	/**
	 *
	 * @Title: open
	 * @Description: 启用策略，并将其他策略设为停用
	 * @author 孟凡岭
	 * @param @param id
	 * @return void 返回类型
	 * @throws
	 */
	public void open(String id);

	/**
	 *
	 * @Title: deleteDis
	 * @Description: 删除策略
	 * @author 孟凡岭
	 * @param @param idsList
	 * @return void 返回类型
	 * @throws
	 */
	public void deleteDis(List<String> idsList);

}
